<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%level}}".
 *
 * @property integer $id
 * @property string $level_name
 * @property integer $money
 * @property string $res
 */
class Level extends \yii\db\ActiveRecord     //报告版本  暂用 reportcate代替
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%level}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['money'], 'integer'],
            [['level_name'], 'string', 'max' => 40],
            [['res'], 'string', 'max' => 80]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'level_name' => 'Level Name',
            'money' => 'Money',
            'res' => 'Res',
        ];
    }
}
